{layout name="passport:layout" /}
<div class="tipbox tipbox-error">
    友情提示:您的伞下共有 <span class="fn-fb red">{$people_num}</span> 个用户
</div> 
<div class="content_wrap">
    <div class="zTreeDemoBackground">
        <ul id="ztree" class="ztree"></ul>
    </div>
</div>
<style type="text/css">
ul.ztree {margin-top: 10px;border: 1px solid #617775;background: #f0f6e4;width: 100%;height: 100%;}
</style>
<script type="text/javascript">
Do('ztree',function () {
    var setting = {
        async: {
            enable: true,
            url: "{:url('passport.user/ztree',['uid' => $uid])}", // 异步加载时访问的页面
            autoParam: ["id"],    // 异步加载时要传递的参数
        }
	};
    $.fn.zTree.init($("#ztree"),setting);
})
</script>